package com.t.bricks.bussiness.db.entity.orderdetail.base;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.math.BigDecimal;

import com.t.bricks.annotation.DataInfo;

/**
 * 订单详情'OrderDetail'表实体类
 * 警告:非数据库字段禁止在此添加,应该创建扩展实体中添加
 */
@ApiModel("订单详情OrderDetail")
public class OrderDetailBase implements Serializable {

	private static final long serialVersionUID = -1L;// 使用rmi时需修改

	/**
	 * 记录编号(订单编号+序号)
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="OrderDetail", sName="sId", sComment="记录编号(订单编号+序号)", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=true, isNull=false,
		iMaxLength=12, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=0 )
	@ApiModelProperty(value="记录编号(订单编号+序号)", example="")
	//[end]
	protected String sId;

	/**
	 * 订单编号
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="OrderDetail", sName="sOrderId", sComment="订单编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=10, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=1 )
	@ApiModelProperty(value="订单编号", example="")
	//[end]
	protected String sOrderId;

	/**
	 * 物品编号
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="OrderDetail", sName="sGoodsId", sComment="物品编号", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=2 )
	@ApiModelProperty(value="物品编号", example="")
	//[end]
	protected String sGoodsId;

	/**
	 * 物品名称(冗余)
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="OrderDetail", sName="sGoodsName", sComment="物品名称(冗余)", isDbField=true, sDbFileType="varchar",
		sDefaultData="", isExtra=false, iskey=false, isNull=false,
		iMaxLength=64, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=3 )
	@ApiModelProperty(value="物品名称(冗余)", example="")
	//[end]
	protected String sGoodsName;

	/**
	 * 数量
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="OrderDetail", sName="iNumber", sComment="数量", isDbField=true, sDbFileType="int",
		sDefaultData="1", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=false, iIntegralLength=2, iDecimalLength=2, iIndex=4 )
	@ApiModelProperty(value="数量", example="1")
	//[end]
	protected Integer iNumber;

	/**
	 * 单价(元)
	 */
	//[start]
	@DataInfo( sDbName="BricksWarehousing", sTableName="OrderDetail", sName="mPrice", sComment="单价(元)", isDbField=true, sDbFileType="decimal",
		sDefaultData="0", isExtra=false, iskey=false, isNull=false,
		iMaxLength=8, isDecimal=true, iIntegralLength=6, iDecimalLength=2, iIndex=5 )
	@ApiModelProperty(value="单价(元)", example="0")
	//[end]
	protected BigDecimal mPrice;

	/**
	 * 取 记录编号(订单编号+序号)
	 * @return String
	 */
	public String getsId() {
		return sId;
	}

	/**
	 * 设置记录编号(订单编号+序号)
	 * @param sId
	 */
	public void setsId(String sId) {
		this.sId = sId;
	}

	/**
	 * 取 订单编号
	 * @return String
	 */
	public String getsOrderId() {
		return sOrderId;
	}

	/**
	 * 设置订单编号
	 * @param sOrderId
	 */
	public void setsOrderId(String sOrderId) {
		this.sOrderId = sOrderId;
	}

	/**
	 * 取 物品编号
	 * @return String
	 */
	public String getsGoodsId() {
		return sGoodsId;
	}

	/**
	 * 设置物品编号
	 * @param sGoodsId
	 */
	public void setsGoodsId(String sGoodsId) {
		this.sGoodsId = sGoodsId;
	}

	/**
	 * 取 物品名称(冗余)
	 * @return String
	 */
	public String getsGoodsName() {
		return sGoodsName;
	}

	/**
	 * 设置物品名称(冗余)
	 * @param sGoodsName
	 */
	public void setsGoodsName(String sGoodsName) {
		this.sGoodsName = sGoodsName;
	}

	/**
	 * 取 数量
	 * @return Integer
	 */
	public Integer getiNumber() {
		return iNumber;
	}

	/**
	 * 设置数量
	 * @param iNumber
	 */
	public void setiNumber(Integer iNumber) {
		this.iNumber = iNumber;
	}

	/**
	 * 取 单价(元)
	 * @return Integer
	 */
	public BigDecimal getmPrice() {
		return mPrice;
	}

	/**
	 * 设置单价(元)
	 * @param mPrice
	 */
	public void setmPrice(BigDecimal mPrice) {
		this.mPrice = mPrice;
	}

}
